//
//  Common.swift
//  WeiBo
//
//  Created by Apple on 2017/5/31.
//  Copyright © 2017年 KY. All rights reserved.
//

import UIKit

//  切换根视图控制器名
let SwitchRootVCNotificationName = "SwitchRootVCNotificationName"

//  首页cell重用标记
let HomeCellIdentifier = "HomeCellIdentifier"
//  首页配图cell重用标记
let HomePictureCellIdentifier = "HomePictureCellIdentifier"

//  首页子控件间距
let HomeCellMargin: CGFloat = 10
//  当前屏幕的宽度
let ScreenWidth = UIScreen.main.bounds.size.width
//  当前屏幕的高度
let ScreenHeight = UIScreen.main.bounds.size.height


//  随机色
func RandomColor() -> UIColor {
    
    let red = CGFloat(arc4random_uniform(256)) / 255
    let green = CGFloat(arc4random_uniform(256)) / 255
    let blue = CGFloat(arc4random_uniform(256)) / 255
    
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
    
}
